<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>树形表格</title>
<!--框架必需start-->
<script type="text/javascript" src="../../libs/js/jquery.js"></script>
<script type="text/javascript" src="../../libs/js/language/cn.js"></script>
<script type="text/javascript" src="../../libs/js/framework.js"></script>
<link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<!--框架必需end-->

<!--数据表格start-->
<script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
<!--数据表格end-->
<style>
	.l-panel{
		border-left: 0;
		border-right: 0;
	}
	.l-panel table, .l-panel td{
		line-height: 35px;
	}
	.l-grid-row-cell-inner-title{
		line-height: 28px;
		height: 28px;
	}
	.l-grid-row-cell{
		border-bottom: dotted 1px #ccc;
		border-right:none;
	}
	.l-grid-hd-cell{
		border-right:none;
	}
	.l-grid-tree-space{
		width: 40px;
	}
</style>
</head>
<body>
<div class="page_content">

		<div class="groupTitle"><span>损益表</span></div>

		<div id="maingrid" class="treegrid_dynamic"></div>
    </div>
<script type="text/javascript">
	var gridData={"rows":[
		{"id":1,"parentId":0,"index":1,"name":"一、营业总收入","prev":"148,525,268,999.44","next":"202,413,451,160.48","children":[
			{"id":11,"parentId":1,"index":2,"name":"营业收入","prev":"148326363909.94","next":"202149152364.77"}
		]},
		{"id":2,"parentId":0,"index":3,"name":"二、营业总成本","prev":"142,117,550,906.22","next":"186,586,431,218.13","children":[
			{"id":21,"parentId":2,"index":4,"name":"营业成本","prev":"134,332,458,305.02","next":"177,816,743,212.39"},
			{"id":22,"parentId":2,"index":5,"name":"营业税金及附加","prev":"569,634,292.13","next":"525,055,202.74"},
			{"id":23,"parentId":2,"index":6,"name":"销售费用","prev":"1,458,740,948.42","next":"1,784,620,103.36"},
			{"id":24,"parentId":2,"index":7,"name":"管理费用","prev":"4,592,115,090.69","next":"5,304,370,387.55"},
			{"id":25,"parentId":2,"index":8,"name":"财务费用","prev":"1,675,503,461.87","next":"806,574,502.66"},
			{"id":26,"parentId":2,"index":9,"name":"资产减值损失","prev":"-635,104,394.76","next":"187,685,600.66"}
		]},
		{"id":3,"parentId":0,"index":10,"name":"三、其他经营收益","prev":"316,070,757","next":"-14,870,783.07","children":[
			{"id":31,"parentId":3,"index":11,"name":"公允价值变动净收益","prev":"-107,403,713.41","next":"12,063,575.63"},
			{"id":32,"parentId":3,"index":12,"name":"投资净收益","prev":"953,451,861.75","next":"826,681,541.14"},
			{"id":33,"parentId":3,"index":13,"name":"联营、合营企业投资收益","prev":"--","next":"--"},
			{"id":34,"parentId":3,"index":14,"name":"汇兑净收益","prev":"--","next":"--"}
		]},
		{"id":4,"parentId":0,"index":15,"name":"四、营业利润","prev":"7,253,766,241.56","next":"16,665,765,059.12","children":[
			{"id":41,"parentId":4,"index":16,"name":"营业外收入","prev":"495,599,260.18","next":"589,839,984.17"},
			{"id":42,"parentId":4,"index":17,"name":"营业外支出","prev":"454,810,105.87","next":"179,372,012.82"},
			{"id":43,"parentId":4,"index":18,"name":"非流动资产处置净损失","prev":"342,022,037.9","next":"133,386,264.64"}
		]},
		{"id":5,"parentId":0,"index":19,"name":"五、利润总额","prev":"7,294,555,395.87","next":"17,076,233,030.47","children":[
			{"id":51,"parentId":5,"index":20,"name":"所得税","prev":"1,199,353,677.79","next":"3,715,345,425.92"},
			{"id":52,"parentId":5,"index":21,"name":"未确认的投资损失","prev":"--","next":"--"}
		]},
		{"id":6,"parentId":0,"index":22,"name":"六、净利润","prev":"6,095,201,718.08","next":"13,360,887,604.55","children":[
			{"id":61,"parentId":6,"index":23,"name":"少数股东损益","prev":"278,974,324.98","next":"471,804,285.43"},
			{"id":62,"parentId":6,"index":24,"name":"归属于母公司股东的净利润","prev":"5,816,227,393.1","next":"12,889,083,319.12"}
		]}

	]}

	var g;
	function initComplete(){
	     //usePager: false设置为不分页
		 g = $("#maingrid").quiGrid({
	        columns: [
	        { display: '项目', name: 'name', id:'deptId', width: 250, align: 'left',isSort:false },
	        { display: '行次', name: 'index',width: 100, type: 'int', align: 'center',isSort:false },
	        { display: '上期累计', name: 'prev', width: 250, align: 'left' ,isSort:false,headerAlign:"left"},
	        { display: '本期累计', name: 'next', width: 250, align: 'left',isSort:false,headerAlign:"left" }
	        ], 
	        height: 'auto', width:853,checkbox:false,usePager: false,rowHeight:28,headerRowHeight:35,hideScrollerX:true,alternatingRow:false,
	        data:gridData,autoCheckChildren:false,hideLink:true,tree: { columnId: 'deptId' },rowAttrRender: function(rowdata, rowid){
                return 0 == rowdata.parentId ? "style=\"background-color:#f5f5f5;\"" : '';
            }
	    });
	}
	

</script>	
</body>
</html>